<template>
  <div>
    <div class="text">
      <div class="text-1" >
        <router-link
          to="/video1"
          :class="{ on: '/video1' === $route.path }"
          >推荐</router-link
        >
        <div :class="{ xian1: '/video1' === $route.path }" ></div>
      </div>

      <div class="text-1" >
        <router-link
          to="/video2"
          :class="{ on: '/video2' === $route.path }"
          >视频
        </router-link>
         <div :class="{ xian1: '/video2' === $route.path }" ></div>
      </div>
      <div class="text-1" >
        <router-link
          to="/video3"
          :class="{ on: '/video3' === $route.path }"
          >论坛
        </router-link>
         <div :class="{ xian1: '/video3' === $route.path }" ></div>
      </div>


      <div class="text-2">
        <img class="img1" src="/video/1.png" alt="">
        <img class="img2" src="/video/2.png" alt="">
    </div>
    </div>
    <router-view />
    
  </div>
</template>

<script>
export default {
   
};
</script>

<style scoped>
.text {
  /* width: 100%; */
  height: 0.64rem;
  font-size: 0.16rem;
  display: flex;
  background-color: #fff;
  margin-left: 0.15rem;
}
.text-1 {
  width: 0.4rem;
  height: 0.52rem;
  /* text-align: center; */
  margin-right:0.2rem ;
  line-height: 0.52rem;

}
a {
  color: #868c92;
}
.on {
  font-size: 0.2rem;
  color: #1d2127;
  font-weight: 700;
}
.xian1 {
  width: 0.3rem;
  height: 0.03rem;
  background-color: #15c5ce;
  border-radius: 0.05rem;
  margin-left: 0.05rem;
   margin-top: -0.09rem;

}
.text-2{
    display: flex;
    margin-left: 0.9rem;
}
.text-2 .img1{
    width: 0.25rem;
    height: 0.25rem;
    margin-top: 0.15rem;
    margin-left: 0.1rem;
}
.text-2 .img2{
    width: 0.28rem;
    height: 0.28rem;
    margin-top: 0.15rem;
    margin-left: 0.1rem;


}

</style>